# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo1424
# Description:
# Author:       yzl
# Date:         2019-02-10
#-------------------------------------------------------------------------------

import json
class Product:
    def __init__(self,d):
        self.__dict__ = d

f = open('files/products.json','r',encoding='utf-8')
jsonstr = f.read()
products = json.loads(jsonstr,object_hook=Product)
print(products)

